﻿<%@ Page Language="C#" MasterPageFile="~/Master/EditMasterPage.master" AutoEventWireup="True" Inherits="Web.ShquserManager_Edit" Title="" Codebehind="Edit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
     <script type="text/javascript">
         //选择名称
         function OpenTreePlantable() {
             openDlgWindow(window, "选择计划", "/_Common/SelectPlantable.aspx", SetItemValuePlantable, true, 600, 300);
         }
         //获得选择
         function SetItemValuePlantable(returnVal) {
             if (returnVal != "") {
                 document.getElementById("<%=txt_PlanId.ClientID %>").value = returnVal.pkid;
                 document.getElementById("<%=txt_PlanName.ClientID %>").value = returnVal.Jhname;
             }
         }
    </script>
    <table class="edit_table" border="1" cellpadding="0" cellspacing="0">
        <tr>
            <td class="edit_alt_item">
               项目名称 ：</td>
            <td colspan="3">
                <asp:TextBox ID="txt_Item_name" runat="server" ValidationGroup="Save"
                    newfield="Itemname" newtype="string" notice="项目名称" null="True"
                    CssClass="t_longer " MaxLength="200" size="200" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorItem_name" runat="server" 
                    ControlToValidate="txt_Item_name" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于200" ValidationExpression="^.{0,199}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                 <asp:CustomValidator ID="CustomValidatorItem_name" runat="server" 
                    ErrorMessage="字符数要小于200" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="CheckItem_name"></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <%--<td class="edit_alt_item">
                Id ：</td>
            <td>
                <asp:Label ID="txt_Id" runat="server" ValidationGroup="Save"
                    newfield="Id" newtype="int" notice="Id" null="False"
                    CssClass="t_longnum onlynum" MaxLength="8" size="8" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorId" runat="server" 
                    ControlToValidate="txt_Id" CssClass="warning" Display="Dynamic"
                    ErrorMessage="必须填写" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorId" runat="server" 
                    ControlToValidate="txt_Id" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="必须是数字" ValidationExpression="^-?[1-9]\d*$" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                 <asp:CustomValidator ID="CustomValidatorId" runat="server" 
                    ErrorMessage="必须是数字" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="CheckId"></asp:CustomValidator>
                <span ishow="false" style="color: Red;">*</span>
            </td>--%>
            <td class="edit_alt_item">
               计划名称 ：</td>
            <td>
                <%--<asp:TextBox ID="txt_Jh_name" runat="server" ValidationGroup="Save"
                    newfield="Jhname" newtype="string" notice="计划名称" null="True"
                    CssClass="t_common " MaxLength="200" size="200" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorJh_name" runat="server" 
                    ControlToValidate="txt_Jh_name" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于200" ValidationExpression="^.{0,199}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                 <asp:CustomValidator ID="CustomValidatorJh_name" runat="server" 
                    ErrorMessage="字符数要小于200" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="CheckJh_name"></asp:CustomValidator>--%>
                <asp:TextBox ID="txt_PlanId" runat="server" ValidationGroup="Save"
                    newfield="PlanId" newtype="int" notice="所属计划" null="True"
                    CssClass="t_num" MaxLength="3" size="3" style="display:none"/>
                <asp:TextBox ID="txt_PlanName" runat="server" ValidationGroup="Save"
                    newfield="Jhname" newtype="string" notice="所属计划" null="true"
                    CssClass="t_common"  Onfocus="OpenTreePlantable(); return false;"/>
                <asp:Button ID="Button1" CssClass="btn_Button" ToolTip="选择" CommandName="btnSelect"
                    runat="server" OnClientClick="OpenTreePlantable(); return false;" Text="选择" />
           </td>
            <td class="edit_alt_item">
               处室 ：</td>
            <td>
                <%--<asp:TextBox ID="txt_Chsh_management" runat="server" ValidationGroup="Save"
                    newfield="Chshmanagement" newtype="string" notice="处室" null="True"
                    CssClass="t_common " MaxLength="200" size="200" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorChsh_management" runat="server" 
                    ControlToValidate="txt_Chsh_management" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于200" ValidationExpression="^.{0,199}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                 <asp:CustomValidator ID="CustomValidatorChsh_management" runat="server" 
                    ErrorMessage="字符数要小于200" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="CheckChsh_management"></asp:CustomValidator>--%>
                <asp:DropDownList ID="Chsh_managementDropDownList" runat="server"
                    newfield="Chshmanagement" newtype="string" notice="处事管理" null="True"
                    ValidationGroup="Save" CssClass="dropdownlist" >
                </asp:DropDownList>
                <%--<asp:CustomValidator ID="Chsh_managementCustomValidator" runat="server" 
                    ErrorMessage="必选选择处事" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="Chsh_managementCustomValidator_ServerValidate"></asp:CustomValidator>--%>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item">
               项目负责人 ：</td>
            <td>
                <asp:TextBox ID="txt_Item_people" runat="server" ValidationGroup="Save"
                    newfield="Itempeople" newtype="string" notice="项目负责人" null="True"
                    CssClass="t_common " MaxLength="50" size="50" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorItem_people" runat="server" 
                    ControlToValidate="txt_Item_people" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于50" ValidationExpression="^.{0,49}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                 <asp:CustomValidator ID="CustomValidatorItem_people" runat="server" 
                    ErrorMessage="字符数要小于50" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="CheckItem_people"></asp:CustomValidator>
            </td>
            <td class="edit_alt_item">
               申报单位 ：</td>
            <td>
                <asp:TextBox ID="txt_Company" runat="server" ValidationGroup="Save"
                    newfield="Company" newtype="string" notice="申报单位" null="True"
                    CssClass="t_common " MaxLength="50" size="50" />
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item">
               申报人帐号 ：</td>
            <td>
                <asp:TextBox ID="txt_USERNAME" runat="server" ValidationGroup="Save"
                    newfield="USERNAME" newtype="string" notice="申报人帐号" null="True"
                    CssClass="t_common " MaxLength="50" size="50" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorUSERNAME" runat="server" 
                    ControlToValidate="txt_USERNAME" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于50" ValidationExpression="^.{0,49}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                 <asp:CustomValidator ID="CustomValidatorUSERNAME" runat="server" 
                    ErrorMessage="字符数要小于50" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="CheckUSERNAME"></asp:CustomValidator>
            </td>
            <td class="edit_alt_item">
               下达年限 ：</td>
            <td>
                <asp:TextBox ID="txt_Jh_year" runat="server" ValidationGroup="Save"
                    newfield="Jhyear" newtype="string" notice="下达年限" null="True"
                    CssClass="t_num " MaxLength="10" size="10" onclick="WdatePicker({el:this.id,dateFmt:'yyyy', skin:'whyGreen'})"/>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorJh_year" runat="server" 
                    ControlToValidate="txt_Jh_year" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于10" ValidationExpression="^.{0,9}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
                 <asp:CustomValidator ID="CustomValidatorJh_year" runat="server" 
                    ErrorMessage="字符数要小于10" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="CheckJh_year"></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item">
               申报单位审核意见 ：</td>
            <td colspan="3">
                <asp:TextBox ID="txt_Check_sbdw" runat="server" ValidationGroup="Save" TextMode="MultiLine"
                    newfield="Checksbdw" newtype="string" notice="申报单位审核意见" null="True"
                    CssClass="t_area"  />
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item">
               二级单位审核意见 ：</td>
            <td colspan="3">
                <asp:TextBox ID="txt_Check_ej" runat="server" ValidationGroup="Save" TextMode="MultiLine"
                    newfield="Checkej" newtype="string" notice="二级单位审核意见" null="True"
                    CssClass="t_area" MaxLength="50" size="50" />
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item">
               一级单位审核意见 ：</td>
            <td colspan="3">
                <asp:TextBox ID="txt_Check_yj" runat="server" ValidationGroup="Save" TextMode="MultiLine"
                    newfield="Checkyj" newtype="string" notice="一级单位审核意见" null="True"
                    CssClass="t_area"  />
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item">
               受理中心审核意见 ：</td>
            <td colspan="3">
                <asp:TextBox ID="txt_Check_slzx" runat="server" ValidationGroup="Save" TextMode="MultiLine"
                    newfield="Checkslzx" newtype="string" notice="受理中心审核意见" null="True"
                    CssClass="t_area" MaxLength="50" size="50" />
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item">
               审核日期 ：</td>
            <td>
                <asp:TextBox ID="txt_Check_data" runat="server" ValidationGroup="Save" 
                    newfield="Checkdata" newtype="string" notice="审核日期" null="True" DateFormat="yyyy-MM-dd"
                    CssClass="t_date " MaxLength="10" size="10" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})"/>
            </td>
            <td class="edit_alt_item">
               审核状态 ：</td>
            <td>
                <asp:TextBox ID="txt_Check_qk" runat="server" ValidationGroup="Save"
                    newfield="Checkqk" newtype="string" notice="审核状态" null="True"
                    CssClass="t_common " MaxLength="200" size="200" />
            </td>
        </tr>
    </table>

    <div class="edit_btn_group">
        <asp:Button ID="saveButton" CssClass="btn_Button" runat="server" OnClick="saveButton_Click" OnClientClick="return Checked();" Text="保存" ValidationGroup="Save"></asp:Button>
        &nbsp;&nbsp;
        <input type="button" ishow="true" class="btn_Button" id="returnInput" runat="server" onclick="window.close();" value="关闭" />
    </div>
</asp:Content>

